<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-transformation-edit" th:object="${rTransformation}">
            <input name="id" th:field="*{id}" type="hidden">

            <input name="idDirectory" th:field="*{idDirectory}" class="form-control" type="hidden">

            <div class="form-group">    
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input name="description" th:field="*{description}" class="form-control" type="text">
                </div>
            </div>

           <!-- <div class="form-group">
                <label class="col-sm-3 control-label">创建者：</label>
                <div class="col-sm-8">
                    <input name="createdUser" th:field="*{createdUser}" class="form-control" type="text" readonly>
                </div>
            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">参数组：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <input id="treeId" name="parentId" type="hidden" th:value="${rTransformation?.parGroupId}" />
                        <input id="parGroupId" name="parGroupId" type="hidden" th:value="${rTransformation?.parGroupId}"/>
                        <input class="form-control" type="text" onclick="selectParamGroupTree()" id="treeName" readonly="true" th:value="${rTransformation.parGroupName}">
                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">修改者：</label>
                <div class="col-sm-8">
                    <input name="modifiedUser" th:field="*{modifiedUser}" class="form-control" type="text">
                </div>
            </div>


        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:src="@{/ruoyi/js/kettle-common.js}"></script>
    <script type="text/javascript">
        var prefix = ctx + "kettle/transformation";
        $("#form-transformation-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-transformation-edit').serialize());
            }
        }

        $("input[name='createdDate']").datetimepicker({
            format: "yyyy-MM-dd hh:mm:ss",
            minView: "month",
            autoclose: true
        });

        $("input[name='modifiedDate']").datetimepicker({
            format: "yyyy-MM-dd hh:mm:ss",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>